package com.cauli.file.model.dto.file;

import com.qiwenshare.common.constant.RegexConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author Cauli
 * @date 2023-03-18 12:00
 * @description 创建文件夹DTO
 */
@Data
@ApiModel(value = "CreateFoldDTO", description = "创建文件夹DTO")
public class CreateFoldDTO {
    @NotBlank(message = "文件名不能为空")
    @Pattern(regexp = RegexConstant.FILE_NAME_REGEX, message = "文件名不合法！")
    @ApiModelProperty("创建文件DTO")
    private String fileName;

    @ApiModelProperty("文件路径")
    private String filePath;
}
